package com.example.zyl.api.entity.dto;

import com.example.zyl.api.entity.SysUser;
import com.example.zyl.common.query.annotation.SearchField;
import com.example.zyl.common.query.enums.Operation;
import com.example.zyl.common.query.query.BaseQueryDto;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户信息表(SysUser)Dto实体类
 *
 * @author zyl
 * @since 2024-12-02 09:37:19
 */
@Accessors(chain = true)
public class SysUserDto implements BaseQueryDto<SysUser>, Serializable {

    private static final long serialVersionUID = 915984848064778107L;

    /**
     * 用户ID
     */
    @SearchField(value = Operation.EQ)
    private Long userId;
    /**
     * 用户账号
     */
    @SearchField(value = Operation.LIKE)
    private String userName;
    /**
     * 用户昵称
     */
    @SearchField(value = Operation.LIKE)
    private String nickName;
    /**
     * 手机号码
     */
    @SearchField(value = Operation.LIKE)
    private String userPhone;
    /**
     * 用户性别（0男 1女 2未知）
     */
    @SearchField(value = Operation.EQ)
    private String userSex;
    /**
     * 帐号状态（0正常 1停用）
     */
    @SearchField(value = Operation.EQ)
    private String status;
    /**
     * 备注
     */
    @SearchField(value = Operation.LIKE)
    private String remark;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 是否删除（0：未删除，1：已删除）
     */
    @SearchField(value = Operation.EQ)
    private Integer isDelete = 0;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}

